#define  _CRT_SECURE_NO_WARNINGS
#include"Dnode.h"
bool LinknodeInit(LiStack& L)
{
	L =NULL;
	return true;
}

bool LinknodeInsert(LiStack& L, ElemType e)
{
	LiStack s = (LiStack)malloc(sizeof(Linknode));
	if (s == NULL)
		return false;
	else
	{
		s->data = e;
		s->next = L;
		L = s;
		return true;
	}
	
}

bool LinknodeDelete(LiStack& L)
{
	LiStack p = L;
	if (L == NULL)
		return false;
	L = L->next;
	free(p);
	return false;
}